﻿package dk.gaming.rummikub.primitive
{
	import flash.display.MovieClip;
	
	public class Slot extends MovieClip
	{
		
		private var tile : Tile;
		private var index : Number;
		private var filled : Boolean = false;
		
		
		public function Slot($index:Number=-1)
		{
			index = $index;
			
		}
		
		public function set Filled(value:Boolean):void
		{
			filled = value;
		}
		
		public function get Filled():Boolean
		{
			return filled;
		}
		
		public function setTile($tile:Tile):void
		{
			this.tile = $tile;
		}
		
		public function RemoveTile():void
		{
			this.tile = null;
		}
		
		
		
		
	}
	
	
}